projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a91d36
)
Fixed: Don’t dereference before typechecking
author
Daniel Boles
<dboles@src.gnome.org>
Fri, 13 Oct 2017 08:49:34 +0000
(09:49 +0100)
committer
Daniel Boles
<dboles@src.gnome.org>
Fri, 13 Oct 2017 08:50:19 +0000
(09:50 +0100)
gtk/gtkfixed.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfixed.c
b/gtk/gtkfixed.c
index 62d6a2f3cc5b1c01db88d309c2aa1f969eed3705..bdb8e9570ffbbaf899084fc7f62ba95b6691116a 100644
(file)
--- a/
gtk/gtkfixed.c
+++ b/
gtk/gtkfixed.c
@@
-230,12
+230,14
@@
gtk_fixed_put (GtkFixed *fixed,
gint x,
gint y)
{
- GtkFixedPrivate *priv
= fixed->priv
;
+ GtkFixedPrivate *priv;
GtkFixedChild *child_info;
g_return_if_fail (GTK_IS_FIXED (fixed));
g_return_if_fail (GTK_IS_WIDGET (widget));
+ priv = fixed->priv;
+
child_info = g_new (GtkFixedChild, 1);
child_info->widget = widget;
child_info->x = x;